home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / DEV / A-B / add images.cpt / pix_io.h < prev    next >
Text File  |  1989-06-22  |  879b  |  24 lines

  1. /*
  2.     pix_io.h
  3.  
  4.     file input and output of PICTs and cut and paste with CLIPBOARD
  5.     and most important - conversion from std picts to the proper colors
  6.     for PROTON, FLOURINE, and the mixture of the two
  7.  
  8. */
  9.  
  10. #include "initclut.h"
  11.  
  12. short GetPic( SFReply theReply,  PicHandle *source );
  13. /* reads PICT file and stores in the the handle */
  14.  
  15. void PutPic( SFReply theReply, PicHandle result_pic, PaletteHandle thePalette );
  16. /* write the Pixel image into a PICT file that uses thePalette */
  17.  
  18. CGrafPtr pic_to_bmap( PicHandle picH, Rect * frame, GDHandle themaxdevice );
  19. /* create a an offscreen port-pix-map and fill it with the picture */
  20.  
  21. void add_bmaps( CGrafPtr proton_bmap, Rect *proton_rect, short pr_off_top, short pr_off_left,
  22.                 CGrafPtr flourine_bmap, Rect *flourine_rect, short fl_off_top, short fl_off_left,
  23.                 CGrafPtr *result_bmap, Rect *result_rect, GDHandle themaxdevice );
  24.